<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js">
    </script>
    <script>
        $(document).ready(function () {
            $("p").click(function () {
                $("p").hide();
            });
        });
    </script>
</head>
<body>
<p>如果你点我，我就会消失</p>
<div>继续点我</div>
<p>接着点我</p>
</body>
</html>